/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EntityClass;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;

/**
 *
 * @author Ben
 */

@Entity
public class Appointment implements Serializable {
    @Id
    private Long Appid;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date date;
    private String place;
   //need to add more attributes testing
   
    public Appointment(){}
    
    public void create(Date date, String place){
        this.setDate(date);
        this.setPlace(place);
    }
    
    public Long getId() {
        return Appid;
    }

    public void setId(Long id) {
        this.Appid = id;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
    
    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }
}
